package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.FintechTaskLog;
import com.appkubes.mall.core.po.FintechTaskLogExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface FintechTaskLogMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_log
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechTaskLogSqlProvider.class, method="countByExample")
    long countByExample(FintechTaskLogExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_log
     *
     * @mbg.generated
     */
    @DeleteProvider(type=FintechTaskLogSqlProvider.class, method="deleteByExample")
    int deleteByExample(FintechTaskLogExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_log
     *
     * @mbg.generated
     */
    @Delete({
        "delete from fintech_task_log",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_log
     *
     * @mbg.generated
     */
    @Insert({
        "insert into fintech_task_log (id, bean_name, ",
        "cron_expression, is_success, ",
        "job_name, method_name, ",
        "params, `time`, create_time, ",
        "update_time, exception_detail)",
        "values (#{id,jdbcType=VARCHAR}, #{beanName,jdbcType=VARCHAR}, ",
        "#{cronExpression,jdbcType=VARCHAR}, #{isSuccess,jdbcType=BIT}, ",
        "#{jobName,jdbcType=VARCHAR}, #{methodName,jdbcType=VARCHAR}, ",
        "#{params,jdbcType=VARCHAR}, #{time,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, ",
        "#{updateTime,jdbcType=TIMESTAMP}, #{exceptionDetail,jdbcType=LONGVARCHAR})"
    })
    int insert(FintechTaskLog record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_log
     *
     * @mbg.generated
     */
    @InsertProvider(type=FintechTaskLogSqlProvider.class, method="insertSelective")
    int insertSelective(FintechTaskLog record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_log
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechTaskLogSqlProvider.class, method="selectByExampleWithBLOBs")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="bean_name", property="beanName", jdbcType=JdbcType.VARCHAR),
        @Result(column="cron_expression", property="cronExpression", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_success", property="isSuccess", jdbcType=JdbcType.BIT),
        @Result(column="job_name", property="jobName", jdbcType=JdbcType.VARCHAR),
        @Result(column="method_name", property="methodName", jdbcType=JdbcType.VARCHAR),
        @Result(column="params", property="params", jdbcType=JdbcType.VARCHAR),
        @Result(column="time", property="time", jdbcType=JdbcType.BIGINT),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="exception_detail", property="exceptionDetail", jdbcType=JdbcType.LONGVARCHAR)
    })
    List<FintechTaskLog> selectByExampleWithBLOBsWithRowbounds(FintechTaskLogExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_log
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechTaskLogSqlProvider.class, method="selectByExampleWithBLOBs")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="bean_name", property="beanName", jdbcType=JdbcType.VARCHAR),
        @Result(column="cron_expression", property="cronExpression", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_success", property="isSuccess", jdbcType=JdbcType.BIT),
        @Result(column="job_name", property="jobName", jdbcType=JdbcType.VARCHAR),
        @Result(column="method_name", property="methodName", jdbcType=JdbcType.VARCHAR),
        @Result(column="params", property="params", jdbcType=JdbcType.VARCHAR),
        @Result(column="time", property="time", jdbcType=JdbcType.BIGINT),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="exception_detail", property="exceptionDetail", jdbcType=JdbcType.LONGVARCHAR)
    })
    List<FintechTaskLog> selectByExampleWithBLOBs(FintechTaskLogExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_log
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechTaskLogSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="bean_name", property="beanName", jdbcType=JdbcType.VARCHAR),
        @Result(column="cron_expression", property="cronExpression", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_success", property="isSuccess", jdbcType=JdbcType.BIT),
        @Result(column="job_name", property="jobName", jdbcType=JdbcType.VARCHAR),
        @Result(column="method_name", property="methodName", jdbcType=JdbcType.VARCHAR),
        @Result(column="params", property="params", jdbcType=JdbcType.VARCHAR),
        @Result(column="time", property="time", jdbcType=JdbcType.BIGINT),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP)
    })
    List<FintechTaskLog> selectByExampleWithRowbounds(FintechTaskLogExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_log
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechTaskLogSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="bean_name", property="beanName", jdbcType=JdbcType.VARCHAR),
        @Result(column="cron_expression", property="cronExpression", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_success", property="isSuccess", jdbcType=JdbcType.BIT),
        @Result(column="job_name", property="jobName", jdbcType=JdbcType.VARCHAR),
        @Result(column="method_name", property="methodName", jdbcType=JdbcType.VARCHAR),
        @Result(column="params", property="params", jdbcType=JdbcType.VARCHAR),
        @Result(column="time", property="time", jdbcType=JdbcType.BIGINT),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP)
    })
    List<FintechTaskLog> selectByExample(FintechTaskLogExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_log
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "id, bean_name, cron_expression, is_success, job_name, method_name, params, `time`, ",
        "create_time, update_time, exception_detail",
        "from fintech_task_log",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="bean_name", property="beanName", jdbcType=JdbcType.VARCHAR),
        @Result(column="cron_expression", property="cronExpression", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_success", property="isSuccess", jdbcType=JdbcType.BIT),
        @Result(column="job_name", property="jobName", jdbcType=JdbcType.VARCHAR),
        @Result(column="method_name", property="methodName", jdbcType=JdbcType.VARCHAR),
        @Result(column="params", property="params", jdbcType=JdbcType.VARCHAR),
        @Result(column="time", property="time", jdbcType=JdbcType.BIGINT),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="exception_detail", property="exceptionDetail", jdbcType=JdbcType.LONGVARCHAR)
    })
    FintechTaskLog selectByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_log
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechTaskLogSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") FintechTaskLog record, @Param("example") FintechTaskLogExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_log
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechTaskLogSqlProvider.class, method="updateByExampleWithBLOBs")
    int updateByExampleWithBLOBs(@Param("record") FintechTaskLog record, @Param("example") FintechTaskLogExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_log
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechTaskLogSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") FintechTaskLog record, @Param("example") FintechTaskLogExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_log
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechTaskLogSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(FintechTaskLog record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_log
     *
     * @mbg.generated
     */
    @Update({
        "update fintech_task_log",
        "set bean_name = #{beanName,jdbcType=VARCHAR},",
          "cron_expression = #{cronExpression,jdbcType=VARCHAR},",
          "is_success = #{isSuccess,jdbcType=BIT},",
          "job_name = #{jobName,jdbcType=VARCHAR},",
          "method_name = #{methodName,jdbcType=VARCHAR},",
          "params = #{params,jdbcType=VARCHAR},",
          "`time` = #{time,jdbcType=BIGINT},",
          "create_time = #{createTime,jdbcType=TIMESTAMP},",
          "update_time = #{updateTime,jdbcType=TIMESTAMP},",
          "exception_detail = #{exceptionDetail,jdbcType=LONGVARCHAR}",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKeyWithBLOBs(FintechTaskLog record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_task_log
     *
     * @mbg.generated
     */
    @Update({
        "update fintech_task_log",
        "set bean_name = #{beanName,jdbcType=VARCHAR},",
          "cron_expression = #{cronExpression,jdbcType=VARCHAR},",
          "is_success = #{isSuccess,jdbcType=BIT},",
          "job_name = #{jobName,jdbcType=VARCHAR},",
          "method_name = #{methodName,jdbcType=VARCHAR},",
          "params = #{params,jdbcType=VARCHAR},",
          "`time` = #{time,jdbcType=BIGINT},",
          "create_time = #{createTime,jdbcType=TIMESTAMP},",
          "update_time = #{updateTime,jdbcType=TIMESTAMP}",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(FintechTaskLog record);
}